import 'package:app/pages/personnel_module/post_module/post_model.dart';
import 'package:app/services/address.dart';
import 'package:app/services/dio_manager.dart';
import 'package:get/get.dart';

class PostController extends GetxController{


  PostModel? model;

  requestDataWithPost()async{

    var json = await DioManager().kkRequest(Address.hrJobRead,method: 'get');

    PostModel _model = PostModel.fromJson(json);

    model = _model;

    update();

  }

  @override
  void onInit() {
    // TODO: implement onInit
    requestDataWithPost();
    super.onInit();
  }
}